<!--
 * @description: 
 * @version: 1.0.1
 * @Author: xuqiulin
 * @Date: 2021-05-26 09:40:09
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-05-26 09:41:48
-->
<script>
    var chat = io.connect('http://localhost/chat')
      , news = io.connect('http://localhost/news');
    
    chat.on('connect', function () {
        chat.emit('hi!');
    });
    
    news.on('news', function () {
        news.emit('woot');
    });
</script>
